'use strict';
exports.main = async (event, context) => {
	const db = uniCloud.databaseForJQL({
			event,
			context 
		});
		let data=JSON.parse(event.body)
		data.time=new Date()
		await db.collection("item").add(data)
		return data
};
